package cn.micai.base.string;

/**
 * 描述：
 * <p>
 *
 * @author: 赵新国
 * @date: 2018/6/11 11:00
 */
public class StringEndsWithExample {

    public static void main(String [] args) {

        String str = "java2blog";

        if (str.endsWith("blog")) {
            System.out.println("String ends with blog");
        }
        else {
            System.out.println("String does not end with blog");
        }

        if (str.endsWith("BLOG")) {
            System.out.println("String ends with BLOG");
        }
        else {
            System.out.println("String does not end with BLOG");
        }

    }
}
